<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生主页</title>
	<%
		 request.setCharacterEncoding("UTF-8");
		 String message=String.valueOf((request.getSession().getAttribute("student_message")));
	%>
	<script>
		var message='<%=message%>';
		if(message.length!=0&&message!="null"){
			alert(message);
		}
		</script>	
		<%//复原
			request.getSession().setAttribute("student_message","");
		%>		
</head>
<body>
<% String StuID=String.valueOf((request.getSession().getAttribute("ID")));%>
<h2>欢迎学生：<%=StuID%> </h2>
<table>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/student/choose_course.jsp">选课</a></td></tr>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/student/showCourse.jsp">查看课表</a></td></tr>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/student/myinfo.jsp">查个个人信息</a></td></tr>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/student/updatePW.jsp">修改密码</a></td></tr>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/student/alter_phone.jsp">修改密保手机</a></td></tr>
<tr><td><a href="http://localhost:8080/my_term_project_xuanke/studentServlet?action=exit">退出</td></tr>
</table>
</body>
</html>